home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / BBS / HERMES / ProtMover6.1.cpt / ASCII / ASCII.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  1.4 KB  |  45 lines  |  [TEXT/KAHL]

  1. #define    MAXERR                5
  2. #define    READBUFFSIZE        512
  3. #define    WRITEBUFFSIZE        512
  4. #define    LINESIZE            80
  5.  
  6. typedef struct {
  7.     OsType fType;
  8. } ASCIIPref, *ASCIIPrefPtr, **ASCIIPrefHandle;
  9.  
  10. typedef struct {
  11.     SSaverRec SSR;
  12.     FileParam FP;
  13.     IOParam DIOP;
  14.     IOParam MIOPin;
  15.     IOParam MIOPout;
  16.     Str255 fName;
  17.     ASCIIPref thePrefs;
  18.     unsigned char theData[1024];
  19.     int errCount;            /*    total number of errors */
  20.     int errFatal;            /*    non-Mac OS error that aborted the transfer */
  21.     int errList[3];            /*    list of the three last errors */
  22.     int rBPos;                /*    position to get next byte from (File) */
  23.     int rBValid;            /*    bytes valid in the read buffer (File) */
  24.     unsigned char lastC;    /*    last character read from file during send */
  25.     int rbPos;                /*    position to get next byte from */
  26.     int rbValid;            /*    number of bytes valid in the read buffer */
  27.     int wbPosA;                /*    position to place next byte, -1 if writing */
  28.     int wbPosB;                /*    position to place next byte, -1 if writing */
  29.     unsigned char readBuffer[READBUFFSIZE];
  30.     unsigned char writeBuffA[WRITEBUFFSIZE];
  31.     unsigned char writeBuffB[WRITEBUFFSIZE];
  32.     unsigned char lineBuffer[LINESIZE+1];
  33.     unsigned char lineExtra[LINESIZE+1];
  34. } ProtoGloRec, *ProtoGloPtr, **ProtoGloHand;
  35.  
  36. #define TIMEOUT                -1
  37. #define    TOOMANYERR            -2
  38. #define    CANCELED            -3
  39. #define    NOTTEXT                -4
  40. #define NOCONTINUE            -5
  41. #define    ABORT                0x0B
  42. #define    FINISHED            0x04
  43. #define    PAUSE(a)            (a == 0x10)
  44. #define    CONTINUE(a)            (a == ' ')
  45.